﻿using System.Windows.Forms;

namespace SkyDriveWindowsFormsApplication1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        public string Title
        {
            get { return this.Text; }
            set { this.Text = value; }
        }

        public string Prompt
        {
            get { return this.label1.Text; }
            set { this.label1.Text = value; }
        }

        public string UserInput
        {
            get { return (string.Empty + this.textBox1.Text).Trim(); }
            set { this.textBox1.Text = value; }
        }

        private void Form2_Load(object sender, System.EventArgs e)
        {
            this.button1.Enabled = !string.IsNullOrEmpty(this.UserInput);
        }

        private void textBox1_TextChanged(object sender, System.EventArgs e)
        {
            this.button1.Enabled = !string.IsNullOrEmpty(this.UserInput);
        }
    }
}
